package com.hx.vending.pay;

import com.hx.vending.util.RedisUtil;
import redis.clients.jedis.Jedis;

import javax.servlet.http.HttpServletRequest;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by Administrator on 2018/12/10.
 * 微信扫码支付回调
 */
public class RunnerWXPayCallBack implements Runnable{


    //线程名称
    private String threadName;
    //线程类
    private Thread thread;
    //微信获取的流信息
    private HttpServletRequest request;

    public RunnerWXPayCallBack(String Runnername){

        threadName = Runnername;
        System.out.println("创建 ：" +  threadName );

    }

    @Override
    public void run() {

        System.out.println("//////////////////////////////////////////////////////////////");


    }

//    public void start () {
//        System.out.println("开始： " +  threadName );
//        if (thread == null) {
//            thread = new Thread (this, threadName);
//            thread.start ();
//        }else{
//            System.out.println(thread);
//        }
//    }


    public synchronized String callBackMessage() {

        return null;
    }

    public String getThreadName() {
        return threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName;
    }

    public Thread getThread() {
        return thread;
    }

    public void setThread(Thread thread) {
        this.thread = thread;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }
}
